package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcNursingTourRecordMapper;
import com.csun.cmny.provider.model.domain.OmcNursingTourRecord;
import com.csun.cmny.provider.model.dto.nuringTour.HuaLongTourDownDto;
import com.csun.cmny.provider.model.dto.nuringTour.NursingTourRecordSelectDto;
import com.csun.cmny.provider.model.vo.nursingRecords.HuaLongTourRecordVo;
import com.csun.cmny.provider.model.vo.nursingTour.NursingTourRecordVo;
import com.csun.cmny.provider.service.OmcNursingTourRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
@Transactional
public class OmcNursingTourRecordServiceImpl extends BaseService<OmcNursingTourRecord> implements OmcNursingTourRecordService {

    @Resource
    private OmcNursingTourRecordMapper tourRecordMapper;

    @Override
    public List<NursingTourRecordVo> selectNursingTourRecord(NursingTourRecordSelectDto nursingTourRecordSelectDto) {
        return tourRecordMapper.selectNursingTourRecord(nursingTourRecordSelectDto);
    }

    /**
     * 巡视记录报表查询（机构, 时间）
     *
     * @param huaLongTourDownDto the hua long tour dto
     *
     * @return the list.
     */
    @Override
    public List<HuaLongTourRecordVo> queryTourRecord(HuaLongTourDownDto huaLongTourDownDto) {

        return tourRecordMapper.queryTourRecord(huaLongTourDownDto);
    }
}
